package com.wfc.service.serviceImpl;

import com.wfc.dao.CookDao;
import com.wfc.dao.daoImpl.CookDaoImpl;
import com.wfc.entity.Cook;
import com.wfc.service.CookService;

import java.util.List;

public class CookServiceImpl implements CookService {
    private CookDao cookDao = new CookDaoImpl();



    @Override
    public List<Cook> getCookByTitle() {
        return cookDao.getCookByTitle();
    }

    @Override
    public boolean addCook(Cook cook) {
        return cookDao.addCook(cook);
    }

    @Override
    public Cook selectBydname(String dname) {
        return cookDao.selectBydname(dname);
    }

    @Override
    public int update(Cook cook) {
        return cookDao.update(cook);
    }

    @Override
    public List<Cook> selectByuname(String uname) {
        return cookDao.selectByuname(uname);
    }

    @Override
    public Cook selectByimg(String cooking) {
        return cookDao.selectByimg(cooking);
    }

    @Override
    public Cook selectBydname1(String dname) {
        return cookDao.selectBydname1(dname);
    }
}
